package com.demo.security.service.impl;

import com.demo.security.mapper.UserMapper;
import com.demo.security.pojo.User;
import com.demo.security.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

   @Autowired
   private UserMapper userMapper;
    @Override
    public User login(String username) {
        User user = userMapper.selectUserByUserName(username);
        return user;
    }
}
